package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.ScenicInside;
import cn.wolfcode.luowowo.article.mapper.ScenicInsideMapper;
import cn.wolfcode.luowowo.article.service.IScenicInsideService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class ScenicInsideServiceImpl implements IScenicInsideService {

    @Autowired
    private ScenicInsideMapper scenicInsideMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return 0;
    }

    @Override
    public int insert(ScenicInside record) {
        return 0;
    }

    @Override
    public ScenicInside selectByPrimaryKey(Long id) {
        return scenicInsideMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<ScenicInside> selectAll() {
        return scenicInsideMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(ScenicInside record) {
        return 0;
    }

    /**
     * 根据景点id查询内部景点
     * @param scenicId  景点id
     * @return
     */
    @Override
    public List<ScenicInside> selectByScenicId(Long scenicId) {
        return scenicInsideMapper.queryByScenicId(scenicId);
    }
}
